package cn.yqx.bankshop.goods.service;

import cn.yqx.bankshop.goods.pojo.BuGoods;
import cn.yqx.bankshop.goods.pojo.BuGoodsDetatilPara;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface GoodsService {

    BuGoods findById(Long goodId) ;

    List<BuGoods> selectGoodsList(HashMap<String,Object> map)  ;

    List<Map<String,Object>> findMainBusiness(Long supplierId) ;

    List<BuGoods> findGoodsByIds(List<Long> ids);

    List<BuGoods> selectAll() ;

    List<BuGoods> findGoods() ;

    int updateSupplierName(String supplierName , Long goodsId) ;

    int findGoodsNumBySupplierId(Long supplier) ;

    List<Map<String,Object>> statisticsGoodsByCategory(List<Map<String,Object>> goodsList) ;

    List<Map<String,Object>> statisticsByCategory(List<Map<String,Object>> goodsList) ;

    List<BuGoodsDetatilPara> getGoodDetatilParaList(Long goodId) ;
}

